<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<?=url('qyxcx/edit');?>">
            <input type="hidden" name="id" value="<?=$info['id']?>" />
                <div class="layui-form-item">
                  <label class="layui-form-label">公司标题</label>
                  <div class="layui-input-block">
                    <input type="text" name="title" value="<?=$info['title']?>" required lay-verify="required" placeholder="请输入公司标题" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">行业关键词</label>
                  <div class="layui-input-block">
                    <input type="text" name="sub_title" value="<?=$info['sub_title']?>" required lay-verify="required" placeholder="请输入行业关键词" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">公司地址</label>
                  <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="address" value="<?=$info['address']?>" required lay-verify="required" placeholder="请输入公司地址" autocomplete="off" class="layui-input">
                  </div>
                  <div class="layui-input-inline">
                    <input type="text" name="lat" value="<?=$info['lat']?>" required lay-verify="required" placeholder="请输入地址纬度" autocomplete="off" class="layui-input">
                  </div>
                  <div class="layui-input-inline">
                    <input type="text" name="long" value="<?=$info['long']?>" required lay-verify="required" placeholder="请输入地址经度" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">营业时间</label>
                  <div class="layui-input-block">
                    <input type="text" name="time" value="<?=$info['time']?>" required lay-verify="required" placeholder="请输入营业时间" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">联系电话</label>
                  <div class="layui-input-block">
                    <input type="text" name="phone" value="<?=$info['phone']?>" required lay-verify="required" placeholder="请输入联系电话" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">公司LOGO</label>
                  <div class="layui-input-block">
                      <button type="button" class="layui-btn" id="myupimg">
                        <i class="layui-icon">&#xe67c;</i>上传图片
                      </button>
                      <input type="hidden" name="pic" value="<?=$info['pic']?>" />
                      <div style="display:inline-block;position:relative;">
                          <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;<?php if(!$info['pic']):?>display:none;<?php endif;?>" id="closeimg">x</span>
                          <img id="pic" height=50 src="<?=$info['pic']?>" />
                      </div>
                  </div>
                </div>
        			<div class="layui-form-item">
        		        <label class="layui-form-label">门店图(限2张)</label>
        		        <div class="layui-input-block">
        		            <div class="layui-upload">
        		                <button type="button" class="layui-btn" id="multiplepics">
        		                    <i class="layui-icon">&#xe67c;</i>上传多图
        		                </button>
                            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                预览图：
                                <div class="layui-upload-list" id="multiplepicsshow">
            											<?php foreach($info['pics'] as $k=>$v): ?>
            											<div style="display:inline-block;position:relative;margin-right:20px;">
            					      		  	  <input type="hidden" name="pics[]" value="<?=$v?>" />
            					      			  <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;<?php if(!$v):?>display:none;<?php endif;?>" onclick="closeimg(this)">x</span>
            					      			  <img height=100 src="<?=$v?>" />
            					      		  </div>
            											<?php endforeach;?>
            										</div>
                            </blockquote>
        		            </div>
        		        </div>
        		    </div>
                <div class="layui-form-item">
                  <label class="layui-form-label">关于我</label>
                  <div class="layui-input-block">
      		            <script id="container" name="about" type="text/plain"><?=htmlspecialchars_decode($info['about'])?></script>
      		        </div>
                </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();

  var ue = UE.getEditor('container');
});
</script>
